package com.zjapl.web.action;

import com.opensymphony.xwork2.ActionSupport;
import com.zjapl.web.service.TeamService;
import com.zjapl.web.service.impl.TeamServiceImpl;


/** 
 * @author 作者:方武斌    E-mail: fangwb@zjapl.com
 * @version 创建时间：2013-1-15 下午2:16:11 
 * 类说明 
 */
public class DeleteTeamAction extends ActionSupport {

	private static final long serialVersionUID = 1L;
	private int team_id;
    TeamService teamServiceImpl=new TeamServiceImpl();
	/**  
	 * 获取team_id  
	 * @return team_id   
	 */
	public int getTeam_id() {
		return team_id;
	}
	/**  
	 * 设置team_id  
	 * @param team_id team_id  
	 */
	public void setTeam_id(int team_id) {
		this.team_id = team_id;
	}
    
    public String execute(){
    	if(teamServiceImpl.deleteTeam(team_id)){
    	return SUCCESS;
    	}
    	return ERROR;
    }
}
